<%@page import="wt.workflow.work.WorkItem"%>
<%@page import="wt.fc.ReferenceFactory"%>
<%@page import="wt.httpgw.URLFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String baseUrl = new URLFactory().getBaseHREF();
	String tempoid=request.getParameter("oid");
	ReferenceFactory rf=new ReferenceFactory();
	WorkItem item=(WorkItem)rf.getReference(tempoid).getObject();
	if(item.isComplete()){
		request.getRequestDispatcher("/shmged/jsp/com/shlcm/workflow/setparticipant/tpViewTask.jsp").forward(request, response);
	}else{
		request.getRequestDispatcher("/shmged/jsp/com/shlcm/workflow/setparticipant/tpCompleteTask.jsp").forward(request, response);
	}
%>


